package com.own.business.wallet.entity.query;

import com.own.component.common.base.entity.BaseQuery;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * WalletHistoryQuery
 *
 * @author chenxueli
 * @date 2023-08-28 16:04:58
 */
@Schema(title = "钱包订单流水" + ConstantBeanSuffix.QUERY)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class WalletHistoryQuery extends BaseQuery implements Serializable {

    @Schema(title = "用户id")
    private Long userId;

    @Schema(title = "钱包id")
    private Long walletId;

    @Schema(title = "订单号")
    private String tradeNo;

    @Schema(title = "订单标题")
    private String subject;

    @Schema(title = "订单附加信息")
    private String body;

    @Schema(title = "商户订单号")
    private String outTradeNo;

    @Schema(title = "商户退款订单号")
    private String outRefundNo;

    @Schema(title = "订单总金额（分）")
    private Integer totalAmount;

    @Schema(title = "订单状态（1=新建 2=完成 4=订单关闭 5=超时取消）")
    private Integer status;

    @Schema(title = "订单过期时间")
    private LocalDateTime expireTime;

    @Schema(title = "回调地址")
    private String callback;

    @Schema(title = "支付时间")
    private LocalDateTime payTime;

    @Schema(title = "流水类型（1=收入 2=支出 3=退款）")
    private Integer type;

}
